// ok

export default {
  view_company_tree: {
    _odoo_model: 'ir.ui.view',
    model: 'res.company',
    type: 'tree',
    buttons: { create: false, edit: true, delete: false },
    fields: {
      name: { string: '名称' },
      company_registry: { string: '编码' },
      ref: { string: '业务编码' }
    }
  },

  view_company_form: {
    _odoo_model: 'ir.ui.view',
    model: 'res.company',
    type: 'form',
    buttons: { create: false, edit: true, delete: false },

    fields: {
      name: { string: '名称' },
      company_registry: { string: '编码' },
      ref: { string: '业务编码', readonly: 0 }
    }
  },

  action_company: {
    _odoo_model: 'ir.actions',
    name: '公司',
    type: 'ir.actions.act_window',
    res_model: 'res.company',
    domain: [],
    context: {},
    views: {
      tree: 'view_company_tree',
      form: 'view_company_form'
    }
  }
}
